﻿@using VirtualPress.Infrastructure.Entities.Entity
@{
    Book book = ViewBag.Book;
}
@{
    ViewBag.Title = book.Name;
    Layout = "~/Views/Shared/_Main.cshtml";
}
@section head
{
    <link href="/Content/css/books.css" rel="stylesheet" type="text/css" />
}
<div class="container">
    <div class="row">
        <div class="span9">
            <!-- navagation -->
            <ul class="breadcrumb">
                <li><a href="/Home">首页</a> <span class="divider">/</span></li>
                <li><a href="/Books/Home/List">图书</a> <span class="divider">/</span></li>
                <li class="active">@book.Name</li>
            </ul>
            <h4>
                <a>@book.Name</a></h4>
            <hr />
            <div class="row">
                <div class="span2">
                    <img src="@book.CoverImg" alt="@book.Name" />
                </div>
                <div class="span7" style="line-height:200%;">
                    <p>
                        <strong>基本信息</strong></p>
                    <div class="row-fluid">
                        作者：@book.Authors<br />
                        出版社：@book.Press<br />
                        价格：@book.Price</div>
                    <div class="row">
                        <div class="span2">
                                版次：@book.BC
                        </div>
                        <div class="span3">
                                页数：@book.Pages
                        </div>
                    </div>
                    <div class="row">
                        <div class="span2">
                                印次：@book.YC
                        </div>
                        <div class="span3">
                                开本：@book.KB
                        </div>
                    </div>
                    <div class="row">
                        <div class="span2">
                                出版时间：@book.PubDate.ToString("yyyy-MM-dd")
                        </div>
                        <div class="span3">
                                印刷时间：@book.PrintDate.ToString("yyyy-MM-dd")
                        </div>
                    </div>
                     <div class="row">
                        <div class="span2">
                                ISBN：@book.ISBN
                        </div>
                        <div class="span3">
                                包装：@book.Pack
                        </div>
                    </div>
                </div>
            </div>
            <div class="hspace15">
            </div>
            <ul class="breadcrumb">
                <li class="icon-book"></li>
                <li>书籍简介</li>
            </ul>
            <div class="book-info">
                <p>@Html.Raw(book.Introduction)</p>
            </div>
            <div class="hspace15">
            </div>
            <ul class="breadcrumb">
                <li class="icon-list"></li>
                <li>书籍内容</li>
            </ul>
            <div class="book-info">
                <p>@Html.Raw(book.Content)</p>
            </div>
            <div class="hspace15">
            </div>
            <ul class="breadcrumb">
                <li class="icon-user"></li>
                <li>作者简介</li>
            </ul>
            <div class="book-info">
                <p>@Html.Raw(book.AboutAuthor)</p>
            </div>
            <div class="hspace15">
            </div>
            <ul class="breadcrumb">
                <li class="icon-comment"></li>
                <li>媒体评论</li>
            </ul>
            <div class="book-info">
                <p>@Html.Raw(book.Comments)</p>
            </div>
            <div class="hspace15">
            </div>
            <ul class="breadcrumb">
                <li class="icon-tags"></li>
                <li>购买方式</li>
            </ul>
            <div class="alert alert-success">
                <button type="button" class="close" data-dismiss="alert">
                    &times;</button>
                本出版社平台暂不支持购买，请按下方提示进行购买。
            </div>
            <div class="book-info">
                <p>
                    @book.Buy</p>
            </div>
        </div>
        <div class="span3">
            <div class="mini-layout">
                @RenderPage("~/Views/Shared/Partial/_Quiklinks.cshtml")
                <div class="hspace15">
                </div>
                <div class="hspace15">
                </div>
                @RenderPage("~/Views/Shared/Partial/_Newbooks.cshtml")
                <div class="hspace15">
                </div>
                <div class="hspace15">
                </div>
                @RenderPage("~/Views/Shared/Partial/_Consult.cshtml")
            </div>
        </div>
    </div>
</div>
@section tail
{
    <script type="text/javascript">
        $(function () {
            $('#libook').addClass('active');
        });
    </script>
}
